package qj.app.trader;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

import qj.app.trader.ParseRule.RuleMatch;

public class FirstStepReading {
	HashMap<String, List<String>> attrs = new HashMap<String, List<String>>();

	public void addMatch(RuleMatch match, ReaderIndex index) {
		List<String> list = attrs.get(match.attrName);
		if (list==null) {
			list = new LinkedList<String>();
			attrs.put(match.attrName, list);
		}
		list.add(match.val);
	}
	
	public String toString() {
		return attrs.toString();
	}

}
